-
Notifications
You must be signed in to change notification settings - Fork 3k
Doxygen comments fixes #5372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doxygen comments fixes #5372
Conversation
drivers/UARTSerial.h
Outdated
@@ -39,6 +39,13 @@ | |||
|
|||
namespace mbed { | |||
|
|||
/** \addtogroup drivers */ | |||
|
|||
/** A serial port implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could use some work. It sounds so boring.
rtos/rtos_idle.h
Outdated
*/ | ||
/** | ||
@note | ||
Sets the hook function called by by idle task. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by
just once
rtos/rtos_idle.h
Outdated
/** | ||
@note | ||
Sets the hook function called by by idle task. | ||
@param fptr Hook function pointer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
should not be there?
platform/mbed_assert.h
Outdated
@@ -39,6 +43,19 @@ void mbed_assert_internal(const char *expr, const char *file, int line); | |||
} | |||
#endif | |||
|
|||
/** MBED_ASSERT | |||
* Declare runtime assertions, results in runtime error if condition is false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nitpick, but please change the comma to a semicolon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont understand all the changes to groups and why they're needed. the commit history needs to be rewritten or all part of one commit.
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8 | |||
# title of most generated pages and in a few other places. | |||
# The default value is: My Project. | |||
|
|||
PROJECT_NAME = "My Project" | |||
PROJECT_NAME = "Mbed OS Reference" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is also needed in the json version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please point me to which json file I should add this change? Then the group changes are only to make navigation through the API docs easier. It doesn't change or move any APIs or the groups. See the attached image. It shows how the grouping/API looks like with these changes. Earlier everything was showing up in the index.html page itself and this change cleans up lot of those. Its based on our discussion to align things like how HAL group was organized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doxyfile_options.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sg- The contents of json file is as below -
{
"ENABLE_PREPROCESSING": "YES",
"MACRO_EXPANSION": "YES",
"EXPAND_ONLY_PREDEF": "NO",
"SEARCH_INCLUDES": "YES",
"INCLUDE_PATH": "",
"INCLUDE_FILE_PATTERNS": "",
"PREDEFINED": "DOXYGEN_ONLY DEVICE_ANALOGIN DEVICE_ANALOGOUT DEVICE_CAN DEVICE_ETHERNET DEVICE_EMAC DEVICE_FLASH DEVICE_I2C DEVICE_I2CSLAVE DEVICE_I2C_ASYNCH DEVICE_INTERRUPTIN DEVICE_LOWPOWERTIMER DEVICE_PORTIN DEVICE_PORTINOUT DEVICE_PORTOUT DEVICE_PWMOUT DEVICE_RTC DEVICE_TRNG DEVICE_SERIAL DEVICE_SERIAL_ASYNCH DEVICE_SERIAL_FC DEVICE_SLEEP DEVICE_SPI DEVICE_SPI_ASYNCH DEVICE_SPISLAVE DEVICE_STORAGE "MBED_DEPRECATED_SINCE(f, g)=" "MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, M)="",
"EXPAND_AS_DEFINED": "",
"SKIP_FUNCTION_MACROS": "NO",
"EXCLUDE_PATTERNS": "/tools/ /targets/ /FEATURE_/* /features/mbedtls/ /features/storage/ /features/unsupported/ /features/filesystem/ /BUILD/ /rtos/TARGET_CORTEX/rtx/* /cmsis/ /features/FEATURES_"
}
Looks like not changes are needed in that, can you please confirm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you dont add that here, it will not be present in the online hosted version. All changes to the local doxyfile need to be accounted for in the json version. Otherwise it is assumed that the tool defaults will be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, I see your point now, updated json as well now. Please review.
👍 for adding the groups. You could have added a screenshot how it looked prior this change and with this change. To get a picture of how this patch organizes the doc for our API. As pinpointed above, can you squash these changes into one (I believe all of them can be done within one commit - same logical change for all the files). I noticed also some are called |
f737a1a
to
3ad2984
Compare
Review comments fixed with squashed commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question regarding debug builds, if that note is correct. The rest LGTM
platform/mbed_assert.h
Outdated
* Declare runtime assertions: results in runtime error if condition is false | ||
* | ||
* @note | ||
* Use of MBED_ASSERT is limited debug builds only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here as in the docs, debug builds are ?
@sg- I have fixed all the review comments. can you please look into this when you get a chance? |
@sg- Can you please review if there is anything pending on this PR from my side? |
/morph build |
Build : SUCCESSBuild number : 426 Triggering tests/morph test |
Test : FAILUREBuild number : 217 |
/morph test |
Test : SUCCESSBuild number : 258 |
This is the change for updating/fixing Doxygen comments/config to better organize the doxygen docs.